package com.leyou.common.vo;

import com.leyou.common.exceptions.LyException;
import lombok.Data;
import org.joda.time.DateTime;

/**
 * @author syf
 * @version 1.0
 * @date 2019/07/30 16:44
 * @Description TODO:只看不传
 */
@Data
public class ExceptionResult {
    private int status;//状态码
    private String message;//错误信息
    private String timestamp;//时间

    public ExceptionResult(LyException e) {
        this.status = e.getStatus();
        this.message = e.getMessage();
        this.timestamp = DateTime.now().toString("yyyy-MM-dd HH:mm:ss") ;
    }
}
